MSVC 2012 fix. Type coercion to byte-oriented buffer.
authorRobert Lipe <robertlipe@users.noreply.github.com>
Thu, 22 Dec 2016 01:02:39 +0000 (19:02 -0600)
committerGitHub <noreply@github.com>
Thu, 22 Dec 2016 01:02:39 +0000 (19:02 -0600)
jeeps/gpsserial.cc

index e510f540cfaca968676e9dbb9eed44e2b0b218db..5ddd97aed09a369ec00c9395cdcc57771b980624 100644 (file)
@@ -82,7 +82,7 @@ void GPS_Serial_Error(const char* mb, ...)
   *s++ = ':';
   *s++ = ' ';
 
-  FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0,
+  FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, 0,
                 GetLastError(), 0, s, sizeof(msg) - b - 2, 0);
   GPS_Error(msg);